<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>返回一个链接的type属性的值</title>
</head>

<body>
    <p><a id="runoob" type="text/html" href="//www.runoob.com">菜鸟教程</a></p>
    <script>
        document.write("返回链接的type属性值：");
        document.write(document.getElementById("runoob").type);
    </script>
</body>
</html>